package com.ruoyi.experiment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 样品邮寄对象 sample_mailing
 *
 * @author ruoyi
 * @date 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SampleMailing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long mailingId;

    /** 样品id */
    @Excel(name = "样品id")
    private Long sampleId;

    private String sampleName;

    /** 邮寄时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "邮寄时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mailingTime;

    /** 快递单号 */
    @Excel(name = "快递单号")
    private String trackingNumber;

    /** 抵达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抵达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrivalTime;

    @Excel(name = "备注")
    private String remark;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("mailingId", getMailingId())
                .append("sampleId", getSampleId())
                .append("mailingTime", getMailingTime())
                .append("trackingNumber", getTrackingNumber())
                .append("arrivalTime", getArrivalTime())
                .append("remark",getRemark())
                .toString();
    }
}
